import { createWebHashHistory, createRouter } from 'vue-router'

const router = createRouter({
  routes: [
    {
      path: '/jian20',
      component: () => import('../components/Jian20.vue')
    },
    {
      path: '/yun20',
      component: () => import('../components/Yun20.vue')
    },
    {
      path: '/chujiao6',
      component: () => import('../components/Chujiao6.vue')
    },
    {
      path: '/jian8',
      component: () => import('../components/Jian8.vue')
    },
    {
      path: '/hong6k',
      component: () => import('../components/Hong6k.vue')
    },
    {
      path: '/jian11b',
      component: () => import('../components/Jian11b.vue')
    },
    {
      path: '/jian20video',
      component: () => import('../components/Jian20Video.vue')
    },
    {
      path: '/yun20video',
      component: () => import('../components/Yun20Video.vue')
    },
    {
      path: '/',
      component: () => import('../components/Login.vue')
    },
    {
      path: '/layout',
      component: () => import('../components/Layout.vue'),
      children: [
        {
          path: '/need',
          component: () => import('../components/Need.vue')
        },
        {
          path: '/airplane',
          component: () => import('../components/Home.vue')
        },
        {
          path: '/introduce',
          component: () => import('../components/Introduce.vue')
        },
        {
          path: '/report',
          component: () => import('../components/Report.vue')
        }
      ]
    }
  ],
  history: createWebHashHistory()
})

export default router
